set -x
set -e

IMG=mesos0282.img

cp ~/img/$IMG /var/lib/libvirt/images/mesos1.img
cp ~/img/$IMG /var/lib/libvirt/images/mesos2.img
cp ~/img/$IMG /var/lib/libvirt/images/mesos3.img
cp ~/img/$IMG /var/lib/libvirt/images/mesos4.img

virt-install -n mesos1 -r 4096 --vcpus=4 --disk /var/lib/libvirt/images/mesos1.img,device=disk --graphics vnc,port=5910 --mac=52:54:00:81:2b:c1 --network=bridge:virbr0 --import --noautoconsole
virt-install -n mesos2 -r 4096 --vcpus=4 --disk /var/lib/libvirt/images/mesos2.img,device=disk --graphics vnc,port=5911 --mac=52:54:00:81:2b:c2 --network=bridge:virbr0 --import --noautoconsole
virt-install -n mesos3 -r 4096 --vcpus=4 --disk /var/lib/libvirt/images/mesos3.img,device=disk --graphics vnc,port=5912 --mac=52:54:00:81:2b:c3 --network=bridge:virbr0 --import --noautoconsole
virt-install -n mesos4 -r 4096 --vcpus=4 --disk /var/lib/libvirt/images/mesos4.img,device=disk --graphics vnc,port=5913 --mac=52:54:00:81:2b:c4 --network=bridge:virbr0 --import --noautoconsole

./virt-addr mesos1
./virt-addr mesos2
./virt-addr mesos3
./virt-addr mesos4
